package speed;

public class Oberject01 {
	public static void main(String[] args) {
		person xiaomin = new person();
		xiaomin.age = 18;
		xiaomin.name = "小明";
		person baba = new person();
		baba = xiaomin;
		System.out.println(baba.age+"\t"+baba.name);
		System.out.println("--------------------------------------------");
		baba.name = "爸爸";
		System.out.println(xiaomin.age+"\t"+xiaomin.name);
	}

}

class person{
	String name;
	int age;
}